<!DOCTYPE html>
<html>
<head>
	<title>
		
	</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
	<link rel="stylesheet" type="text/css" href="__CSS__/diao/common.css">

	<script src="__JS__/jquery-1.11.3.js"></script>
	<script src="__JS__/index.js" type="text/javascript"></script>
	<script src="__JS__/frame.js" type="text/javascript"></script>
    <script charset="utf-8" src="__PUBLIC__/Home/editor/kindeditor-min.js"></script>
	<script charset="utf-8" src="__PUBLIC__/Home/editor/lang/zh_CN.js"></script>


	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
	<script>
					var editor;
					KindEditor.ready(function(K) {
					editor = K.create('textarea[name="content"]', {
					allowFileManager : true
						});
			
					});
				</script>
	<script src="__JS__/tishi.js" type="text/javascript"></script>
    
	<link href="__CSS__/normalize.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="__CSS__/animate.min.css">
    <link rel="stylesheet" href="__CSS__/jquery.gDialog.css">
<style>
button { border:0;}
.container { margin:50px auto; max-width:728px;text-align:center;font-family:Arial;}
.btn {background-color:#ED5565; color:#fff; padding:20px; margin:10px 30px; border-radius:5px; border-bottom:3px solid #DA4453;}
</style>				
</head>
<body>
<!--未定义-->
	<div id="head" class="header">
		<div class="logo">
        <a href="index.html" target="_self"></a>
		</div>
		<div class="info">
			<ul>
            	<li><a href="index.html">返回首页</a></li>
                <li><a href="#">修改密码</a></li>
                 <li><a href="#">个人设置</a></li>
            </ul>

		</div>
	</div>
	<div class="clear"></div>
<div class="nav" id="main">

      <div id="guid">
			<p>管理控制台</p>
			<ul id="accordion" class="accordion">
		<li>
			<div class="link"><i class="fa fa-paint-brush"></i>云网站<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu"  style="display:block;">
						<li><a href="__MODULE__/Company/index" target="_self">公司设置</a></li>
						<li><a href="__MODULE__/Product/index" target="_self">产品设置</a></li>
						<li><a href="__MODULE__/Gname/index" target="_self">广告设置</a></li>
						<li><a href="__MODULE__/Anli/index" target="_self">客户案例</a></li>
						<li><a href="__MODULE__/team/index">团队风采</a></li>
						<li class="tishi_1"><a href="#">留言查看</a></li>
						<li><a href="__MODULE__/Mainsite/index" target="_self">三屏主站</a></li>
						<li class="tishi_1"><a href="#">云网站浏览</a></li>

			</ul>

		</li>
		<li>
			<div class="link"><i class="fa fa-code"></i>云搜索<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
				<li class="tishi_1"><a href="#" target="_self">搜索发布</a></li>
				<li class="tishi_1"><a href="#">搜索查看</a></li>
				<li class="tishi_1"><a href="#">搜索展示</a></li>
				<li class="tishi_1"><a href="#">行业分类</a></li>
				<li class="tishi_1"><a href="#">草稿箱</a></li>
				<li class="tishi_1"><a href="#">搜索发布必读</a></li>


			</ul>
		</li>
		
		<li><div class="link"><i class="fa fa-globe"></i>云客服<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#" target="_self">QQ客服在线</a></li>
						<li class="tishi_1"><a href="#" target="_self">微信二维码</a></li>
						<li class="tishi_1"><a href="#" target="_self">二维码生成</a></li>
						<li class="tishi_1"><a href="#">优快推云客服</a></li>
						<li class="tishi_1"><a href="#">云客服管理中心</a></li>
						

			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>新闻软文<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新闻软文发布</a></li>
						<li class="tishi_1"><a href="#">新闻APP发布</a></li>
						


			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>云推广<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新浪微博推广</a></li>
						<li class="tishi_1"><a href="#">百度知道</a></li>
						<li class="tishi_1"><a href="#">论坛资源推广</a></li>
			</ul>
		</li>
		<li>
			<div class="link"><i class="fa fa-mobile"></i>云应用<i class="fa fa-chevron-down">
			</i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">代写软文</a></li>
						<li class="tishi_1"><a href="#">云搜索代发</a></li>
						<li class="tishi_1"><a href="#">关键词匹配</a></li>
						<li><a href="buySave.html">在线充值</a></li>
			</ul>
		</li>
	</ul>
		
		</div> <div id="main_show">
       <p id="web_gg">公告：欢迎您进入优快推推广平台。企业要推广，就用优快推<span>优快推V61.0</span></p> 
       </div>
<div id="could_web" style="display:block;">




<div id="product_set" class="product1" style="display:block;">
				<h2>添加产品</h2>
				<hr>
				<div class="Increase_product set2" style="display:block;">
					<div class="Inc_form">
						<form name="tianjia" id="tianjia" method="post" onsubmit='return demo();'action='__MODULE__/Pro/proincrease' onsubmit="return yz();">
							<input type="hidden" name="cid" value="{$cid}">

							<div class="Increase_txt">
								<ul>
									
									<li>产品名称<span>*</span></li>
									<li>关键词<span>*</span></li>
									<li>产品分类<span>*</span></li>
									<li>排序<span>*</span></li>
									<li>产品描述<span>*</span></li>
									
								</ul>
							</div>
							<div class="Increase_input">
								<ul>
									<li><input type="text" name='title' class="yanzheng"></li><span style='color:red;display:none'>产品名称不能为空</span>
									<li class="Ii">
									<input type="text" name="keyword[0]" class="yanzheng1"><span>-</span>
									<input type="text" name="keyword[1]" class="yanzheng2"><span>-</span>
									<input type="text" name="keyword[2]" class="yanzheng3">
									</li><span style='color:red;display:none'>关键字不能为空</span>
									<li>
										
									<select id="increase_select" name='groupid' >
										<option value=''>--请选择--</option>
										<volist name='tlist' id='tlist'>				
											<option value="{$tlist['id']}">{$tlist['title']}</option>
										</volist>
									</select>
										
									</li>
									<li><input type="text" name='sort' class="yanzheng5"></li><span style='color:red;display:none'>请输入数字</span>
									<li>
										<textarea name="content" style="width:600px;height:300px;visibility:hidden;"></textarea>
									</li>
									<li>
									<input id="incra_btn" type="submit" class='submit_btn1' value="提交">
									<script type="text/javascript">
										//产品名称正则
										$("input[name='title']").blur(function(){
											var title = $(this).val();
											if(title == ''){
												// alert($(this));
												$(this).parent().next('span').show();
												return false;
											}else{
												$(this).parent().next('span').hide();
											}
										});

										//关键词正则
										$("input[name='keyword[0]']").blur(function(){
											var keyword0 = $(this).val();
											if(keyword0 == ''){
												// alert($(this));
												$(this).parent().next('span').show();
												return false;
											}else{
												$(this).parent().next('span').hide();
											}
										});
										//关键词正则
										$("input[name='keyword[1]']").blur(function(){
											var keyword1 = $(this).val();
											if(keyword1 == ''){
												// alert($(this));
												$(this).parent().next('span').show();
												return false;
											}else{
												$(this).parent().next('span').hide();
											}
										});
										//关键词正则
										$("input[name='keyword[2]']").blur(function(){
											var keyword2 = $(this).val();
											if(keyword2 == ''){
												// alert($(this));
												$(this).parent().next('span').show();
												return false;
											}else{
												$(this).parent().next('span').hide();
											}
										});

										//排序正则
										$("input[name='sort']").blur(function(){
											var sort = $(this).val();
											if(isNaN(sort)){
												// alert($(this));
												$(this).parent().next('span').show();
												return false;
											}else{
												$(this).parent().next('span').hide();
											}
										});

									//分类验证
									$(document).ready(function(){
										var val = '';
										$('#increase_select').change(function(){
											val = $(this).val();
											// alert(val);
										});

										$('#tianjia').submit(function demo(){
											// alert(val);

											if(val == ''){
												// alert('请选择分类');
													$.gDialog.confirm("Are You Sure?-------------亲^_^-请选择分类！", {
													    title: "企优托提醒您,信息未完善",
														animateIn : "rollIn",
													    animateOut: "rollOut"
													  });
												return false;
											}else{

                                                   

																   var list=$(".yanzheng").val();
									                               var list1=$(".yanzheng1").val();
									                               var list2=$(".yanzheng2").val();
									                               var list3=$(".yanzheng3").val();
									                               // var list4=$(".yanzheng4").val();
									                               var list5=$(".yanzheng5").val();
									                               var list6=$(".yanzheng6").val();
									                               
									                               // alert(list);
									                              // return false;
									                               
									                               if(list =="" || list1 ==""|| list2 ==""|| list3 ==""||list5 ==""|| list6 ==""){

									                               	$.gDialog.confirm("Are You Sure?-------------亲^_^-请按步骤完善信息", {
																    title: "企优托提醒您,信息未完善",
																	animateIn : "rollIn",
																    animateOut: "rollOut"
																  });
									                               return false;
									                               }else{
									         //                         $.gDialog.confirm("添加成功", {
																  //      title: "企优托提醒您,信息未完善",
																	 //   animateIn : "rollIn",
																  //      animateOut: "rollOut"
																  // });
									                                 // return false;
                                                                 }
											}
										});
									});
									</script>
									<!-- <iframe src="about:blank" style="display:none;" name="incraframe" id="incraframe"></iframe>
									</li> -->
								</ul>
								<script type="text/javascript">
									$("#tianjia").attr("target","incraframe");
								</script>
							</div>
						</div>
					</form>	
				</div>
                     <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
							<script src="__JS__/jquery.gDialog.js"></script>
                     <script type="text/javascript">
                          
                               
                               function yz(){
                               	// return false;
                              
                              

                                // alert($(".yanzheng").val());           

                              }
                           
                          

                       </script>
               

				<!--分类管理-->
				<div id="sort" class="set2">
					<p><input type="button" value="批量删除"></p>
					<div class="quanxuan"><!--分类管理列表-->
						<p>全选</p>
						<p>产品分类名称</p>
						<p>排序</p>
						<table id="Incras">
							
						</table>
					</div>
				</div>
		        <div id="tuiguang">
					<div class="xinlang product1">
						<p> ！</p>
					</div>
					<div class="baidu product1">
						<p> </p>
					</div>
					<div class="luntan product1">
						<p> </p>
					</div>
				</div>

	</div>
		
</body>
</html>




